package com.schoolComments.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.schoolComments.entity.Follow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 */
public interface FollowMapper extends BaseMapper<Follow> {

    Integer isFollow(@Param("userId") Long userId, @Param("FollowId") Long FollowId);

    Integer insertFollow(@Param("id1") Long id1, @Param("id") Long id);

    Integer deleteFollow(@Param("id1") Long id1, @Param("id") Long id);

    List<Follow> queryAllById(Long id);
}
